package com.test.base.service.impl;

import com.test.base.entity.Perms;
import com.test.base.entity.User;
import com.test.base.mapper.UserMapper;
import com.test.base.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ssang
 * @since 2021-12-09
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    UserMapper userMapper;

    @Override
    public List<User> getUserList(String username) {
        return userMapper.getUserList(username);
    }

    @Override
    public List<Perms> getPermByRole(String roleId) {
        return userMapper.getPermByRole(roleId);
    }
}
